import { Map } from "immutable";
import * as actionTypes from "./constance";

const defaultState = Map({
  djRadioDetails: [],
  djPrograms: [],
  djRadioHotList: [],
});

const a = (state = defaultState, action) => {
  switch (action.type) {
    case actionTypes.DJRADIODETAIL:
      return state.set("djRadioDetails", action.djRadioDetail);
    case actionTypes.DJPROGRAM:
      return state.set("djPrograms", action.djPrograms);
    case actionTypes.GETDJRADIOHOT:
      return state.set("djRadioHotList", action.DjRadioHotList);
    default:
      return state;
  }
};
export default a;
